package com.mit.web.vo.inventory
{
	import com.mit.web.vo.BaseVO;
	import com.mit.web.vo.purchase.ColorStyleVO;
	import com.mit.web.vo.purchase.MaterialVO;
	
	[Bindable]
	[RemoteClass(alias="com.mit.common.inventory.dto.MaterialReceivedNoteItemDTO")]
	public class MaterialReceivedNoteItemVO extends BaseVO
	{
		public var receivedNoteId:int;
		public var poId:int;
		public var poCode:String;
		public var material:MaterialVO;
		public var materialColor:ColorStyleVO;
		public var requestDeliverDate:Date;
		public var orderQty:Number;
		public var receivedQty:Number;
		public var qty:Number;
		public var unit:String;

		
		
		public function MaterialReceivedNoteItemVO()
		{
			super();
			material = new MaterialVO();
			materialColor = new ColorStyleVO();
		}
		
		public function get pendingQty():Number{
			return orderQty - receivedQty;
		}
	}
}